package com.elong.businesstravel.entitys;

import java.io.Serializable;

/**
 * 会员等级及账户余额
 * 
 * @author lenovo
 * 
 */
public class MemberManaged implements Serializable {

	public String uscore;
	public String text;// ": "您只需再推荐2个人即可升级为VIP会员.",
	public String validateemail;// 0未认证 1已认证 2正在审核
	public String ulevel;
	public String msg;// "成功",
	public String status;
	public String companyname;
	public String showmsg;// ": "",
	public String ticketid;// ": "6",
	public String ticketcash;// ": "30",

	public String getValidateEmail() {
		if ("-1".equals(validateemail)) {
			return "未通过";
		} else if ("0".equals(validateemail)) {
			return "未认证";
		} else if ("1".equals(validateemail)) {
			return "已认证";
		} else if ("2".equals(validateemail)) {
			return "正在审核";
		} else {
			return "未认证";
		}
	}

	/**
	 * -1未通过，0未认证false, 1已认证true, 2正在审核true
	 * 
	 * @return
	 */
	public boolean isValidateEmail() {
		if ("-1".equals(validateemail)) {
			return false;
		} else if ("0".equals(validateemail)) {
			return false;
		} else if ("1".equals(validateemail)) {
			return true;
		} else if ("2".equals(validateemail)) {
			return false;
		} else {
			return false;
		}
	}

}
